
package com.joysuch.wwyt.edu.bean;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author ZhangDong
 * @Date 2020/6/29 18:16
 */
@Data
@NoArgsConstructor
public class EduExamRecordPageDto {

    @ApiModelProperty("考试id")
    private Long examId;
    @ApiModelProperty("考试名称")
    private String examName;
    @ApiModelProperty("考试时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date examTime;
    @ApiModelProperty("应考人数")
    private Integer needExamCount;
    @ApiModelProperty("考试人数")
    private Integer actualExamCount;
    @ApiModelProperty("缺考人数")
    private Integer absentExamCount;
    @ApiModelProperty("通过人数")
    private Integer passCount;
    @ApiModelProperty("合格率")
    private String passRate;
    @ApiModelProperty("及格分数")
    private String passScore;
        /**
     * 线上考试（1 线上 0 线下)
     */
    private Integer formType;
    /**
     * 是否关联培训(1 是 0否)
     */
    private Integer trainType;
    public EduExamRecordPageDto(Long examId, String examName, Date examTime, Integer needExamCount,
            Integer actualExamCount, Integer absentExamCount, Integer passCount, String passRate, String passScore,Integer formType,Integer trainType) {
        this.examId = examId;
        this.examName = examName;
        this.examTime = examTime;
        this.needExamCount = needExamCount;
        this.actualExamCount = actualExamCount;
        this.absentExamCount = absentExamCount;
        this.passCount = passCount;
        this.passRate = passRate;
        this.passScore = passScore;
        this.formType = formType;
        this.trainType = trainType;
    }

    public EduExamRecordPageDto(Long examId, String examName, Date examTime) {
        this.examId = examId;
        this.examName = examName;
        this.examTime = examTime;
    }
}
